{include file="public/header296" /}
<div class="layui-form" style="padding: 20px 30px 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">名称</label>
    <div class="layui-input-inline">
      <input type="text" lay-verify="required" name="name" value="{$item.name|default=''}" autocomplete="on" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">类型</label>
    <div class="layui-input-inline">
      <select name="type">
        <option value="">请选择类型</option>
        {volist name="type_list" id="type" key="index"}
        <option value="{$index}" {eq name="item.type" value="$index"}selected{/eq}>{$type}</option>
        {/volist}
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">排序id</label>
    <div class="layui-input-inline">
      <input type="text" name="sort" value="{$item.sort}" class="layui-input" />
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-inline">
      <input type="checkbox" name="status" lay-skin="switch" lay-filter="switchStatus" lay-text="显示|隐藏" {notempty name="item.status"}{eq name="item.status" value="1"}checked{/eq}{else/}{eq name="item.status" value=""}{/eq}{/notempty} />
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="Lay-app-form-edit" id="Lay-app-form-edit" value="编辑">
  </div>
  <input type="hidden" name="id" value="{$item.id}" />
</div>
<script>
  layui.use(function () { })
</script>
{include file="public/footer" /}